{include file="inc/head.html" data=""}
{nocache}
<div class="index">
	<div class="left">
		{include file="inc/sidebar.html"}
	</div>
	<div class="right">
		<div>
			<a href="{'Admin/classes/add'|site_url}?pid=0">添加分类</a>
		</div>
		<div>
			<table>
				<tr>
					<td>编号</td>
					<td>标题</td>
					<td>操作</td>
				</tr>
				{section name=sn loop=$list}
				<tr>
					<td>{$smarty.section.sn.index+1}</td>
					<td>{$list[sn]->title}</td>
					<td><a href="{'Admin/classes/children_list'|site_url}?id={$list[sn]->id}" target="_BLANK">编辑</a></td>
				</tr>
				{if $list[sn]->list|@count neq 0 }
				{section name=snc loop=$list[sn]->list}
				<tr>
					<td></td>
					<td>|-{$list[sn]->list[snc]->title}</td>
					<td><a href="{'Admin/classes/children_list'|site_url}?id={$list[sn]->id}" target="_BLANK">编辑</a></td>
				</tr>
				{/section}
				{/if}
				{/section}
			</table>
			{$pageHtml}
		</div>
	</div>
</div>
{/nocache}
{include file="inc/foot.html"}